# Maintainer: Jose-Luis Rivas <ghostbar@riseup.net>
pkgname=bats
pkgver=1.10.0
pkgrel=0
pkgdesc="Bash Automated Testing System"
options="!check" # Test passes CI/locally, fails on builders
url="https://github.com/bats-core/bats-core"
arch="noarch"
license="MIT"
depends="bash"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/bats-core/bats-core/archive/v$pkgver.zip"
builddir="$srcdir/bats-core-$pkgver"

check() {
	bash -c 'bin/bats --tap test'
}

package() {
	./install.sh "$pkgdir"/usr
}

sha512sums="
5ccf713e37dcef0e26dec16fccfe0d9700fa3af8e4872cc7f829efa46d14b6897277736aeab0185d41e71662b313517e7c5501437e33cc20825c2d1707cfc32a  bats-1.10.0.zip
"
